<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	/*修改或者是添加   1添加  2修改  */
	String type =request.getParameter("type");
	String sysId =request.getParameter("sysId");
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>信用承诺</title>
</head>
<script src="<%=basePath %>them/ckeditor/ckeditor.js"></script>
<jsp:include page="public.jsp"/>
<!--上传  -->
<script type="text/javascript" src="<%=basePath%>them/jquery-easyui-1.4.2/ajaxfileupload.js"></script>
<script type="text/javascript">
var type='<%=type %>';
var sysId='<%=sysId %>';
CKEDITOR.editorConfig = function( config ) {
	config.toolbar =
		[
		{ name: 'document', items: ['Source', '-', 'Preview'] },
		{ name: 'clipboard', items: ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'] },
		{ name: 'styles', items: ['Styles', 'Format', 'Font', 'FontSize'] },
		{ name: 'colors', items: ['TextColor', 'BGColor'] },
		{ name: 'tools', items: ['About'] },
		'/',
		{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'] },
		{ name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'] },
		{ name: 'links', items: ['Link', 'Unlink', 'Anchor'] },
		{ name: 'insert', items: ['Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak',] }
		
	];
	config.filebrowserImageUploadUrl = '<%=basePath%>upload/CKImgUpload';
	config.height=500;
};
</script>
<body>

  <div class="wi" id="center" align="center"> 
 		 <div class="con" style="border: 1px solid #cccccc;margin-top: 15px;width: 70%">
 		
  		
  			<table id="codetable" style="width:795px; padding-left: 0px;color: gray;margin-left: 5px;">
  				<tr  height="40px;">
  					<td colspan="2" align="center">
  						<span id="titleId" style="color: #ed5736;font-size: 30px"></span>
  					</td>
  				</tr>
  				<!-- <tr  height="30px;">
  					<td style="font-weight:bold;width: 100px;" align="right">
  						<span style="color: red">*</span><span id="showMsgId">承诺编码</span>:
  					</td>
  					<td>
  						<input id="commitmentCodeId"  class="easyui-textbox" 
  							data-options="width:300,required:true"/>
  					</td>
  				</tr> -->
  				<tr  height="30px;">
  					<td style="font-weight:bold;width: 100px;" align="right">
  						<span style="color: red">*</span><span>承诺名称</span>:
  					</td>
  					<td>
  						<input id="commitmentNameId"  class="easyui-textbox"
  							data-options="width:300,required:true"
  						/>
  					</td>
  				</tr>
  				<!-- <tr  height="30px;">
  					<td style="font-weight:bold;width: 100px;" align="right">
  						<span style="color: red">*</span><span>部门编码</span>:
  					</td>
  					<td>
  						<input id="departmentCodeId"  class="easyui-textbox" 
  						data-options="width:300,required:true"
  						/>
  					</td>
  				</tr>
  				<tr  height="30px;">
  					<td style="font-weight:bold;width: 100px;" align="right">
  						<span style="color: red">*</span><span>部门名称</span>:
  					</td>
  					<td>
  						<input id="departmentNameId"  class="easyui-textbox"
  						data-options="width:300,required:true"
  						/>
  					</td>
  				</tr> -->
  				<!-- end -->
  				<tr  height="300px;" id="htmlTrId">
  					<td style="font-weight:bold;width: 100px;" align="right">
  					<span style="color: red">*</span>
  					 承诺内容:
  					</td>
  					<td>
  						<textarea class="ckeditor" id="htmlMsgId"></textarea>
  					
  					</td>
  				</tr>
  				<tr  height="50px;">
  					<td colspan="2" align="center">
  					<input id="subButton"  onclick="subForm()"
  					style="background-color: #ed5736;width: 200px;height: 50px;border: 0px;font-size: 22px;color: white;border-radius: 30px;" 
  					type="button" />
  					</td>
  				</tr>
  			</table>
  		</div> 
     </div>
     <script src="<%=basePath %>them/js/add_update_creadit.js"></script> 
</body>
</html>